﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class DeliveryRobot:Robot
    {
        private int hours;

        public int Hours
        {
            get { return this.hours; }
            set { this.hours = value; }
        }

        public DeliveryRobot(string name, Robottype type,int hours) :base(name,type)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("你好，客人：{0}，这个传菜机器人已经连续工作{1}小时",this.Name,this.hours);
        }
    }
}
